package com.welsmann.app.start.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.welsmann.app.start.dao.ISimpleAirQualityDAO;
import com.welsmann.app.start.entity.SimpleAirQuality;
import com.welsmann.app.start.service.BaseService;
import com.welsmann.app.start.service.IWeatherService;

@Service("WeatherService")
@Transactional(readOnly = true)
public class WeatherService extends BaseService implements IWeatherService {

	@Resource(name = "SimpleAirQualityDAO")
	private ISimpleAirQualityDAO simpleAirQualityDAO;
	
	@Override
	public SimpleAirQuality getLatest() {
		return simpleAirQualityDAO.latest();
	}

}
